import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import {https,baseUrl,requestTask,wsUrl}  from '@/http/http.js'
Vue.config.productionTip = false
import uView from '@/uni_modules/uview-ui'
import FooterBar from 'components/footerbar/footerbar.vue'
import ElementUI from 'element-ui'
import Modal from 'components/modal/modal.vue'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(uView)
Vue.use(ElementUI)
Vue.prototype.https = https
Vue.prototype.baseUrl = baseUrl
Vue.prototype.wsUrl = wsUrl
Vue.component('b-modal', Modal)
App.mpType = 'app'
const app = new Vue({

  ...App
})
Vue.component('footer-bar',FooterBar)
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif